﻿@model IterationLife.Extensions.EasyUI.Models.UeditorParameter
@{
    Layout = null;
}
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <script type="text/javascript" charset="utf-8" src="/Scripts/Ueditor/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="/Scripts/Ueditor/ueditor.all.js"> </script>
    <script type="text/javascript" charset="utf-8" src="/Scripts/Ueditor/lang/zh-cn/zh-cn.js"></script>
</head>
<body>
    <script type="text/plain" id="editor_@(Model.Id)" style="width: @(Model.Width)px; height: @(Model.Height)px;" name="@Model.LabelName">
    </script>
    <script type="text/javascript">
       var ue_@(Model.Id) = UE.getEditor('editor_@(Model.Id)');
        var setContent= function () {
           var content = parent.window.document.getElementById("ueditor_content_@(Model.Id)").value;
           ue_@(Model.Id).setContent(content);
        }
        var getContent = function () {
            return ue_@(Model.Id).getContent();
        }
    window.onload=function() {
        setTimeout("setContent()", "1");
    }
    </script>
</body>
</html>